using System;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 旅行社
    /// </summary>
    public class TravelAgency : ByBranchEntity<Guid>
    {
        /// <summary>
        /// 旅行社名称
        /// </summary>
        [Required(ErrorMessage = "旅行社名称不能为空")]
        [StringLength(100)]
        public string TravelName { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Required(ErrorMessage = "手机号不能为空")]
        [StringLength(100)]
        public string Mobile { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [Required(ErrorMessage = "联系人不能为空")]
        [StringLength(100)]
        public string Contacts { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        [Required]
        public PayMethodEnum PayMethod { get; set; }
        /// <summary>
        /// 账户总金额
        /// </summary>
        [Required]
        public decimal TotalSum { get; set; }
        /// <summary>
        /// 预存金额
        /// </summary>
        [Required]
        public decimal PrepaidAmount { get; set; }
        /// <summary>
        /// 报警金额
        /// </summary>
        [Required]
        public decimal AlarmAmount { get; set; }
        /// <summary>
        /// 购票上限
        /// </summary>
        public long? UpperLimit { get; set; }
        /// <summary>
        /// 购票下限
        /// </summary>
        public long? Lowerlimit { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string Passward { get; set; }
    }
}
